package com.jy.rhin.model.body.jiankangtj;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.model.CodeObject;
import lombok.Data;

/**
 * 健康评估
 *
 * @author shenguangyang
 */
@Data
public class JianKangPG {
    /**
     * 健康状态评估
     */
    @XPath(path = "/entry/observation/code[@code='DE04.01.036.00']/../value",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_01_036_00, nullable = true))
    CodeObject jianKangZTPG;

    /**
     * 生活自理能力评估
     */
    @XPath(path = "/entry/observation/code[@code='DE05.10.043.00']/../value",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE05_10_043_00, nullable = true))
    CodeObject shengHuoZLNLPG;

    /**
     * 老年人认知状态粗筛结果
     */
    @XPath(path = "/entry/observation/code[@code='DE05.10.041.00']/../value",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE05_10_041_00, nullable = true))
    CodeObject laoNianRRZZTCSJG;

    /**
     * 认知功能评分
     */
    @XPath(path = "/entry/observation/entryRelationship/observation/code[@code='DE05.10.042.00']/../value/@value",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE05_10_042_00, nullable = true))
    String renZhiNLPF;


    /**
     * 老年人情感状态粗筛结果
     */
    @XPath(path = "/entry/observation/code[@code='DE05.10.040.00']/../value",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE05_10_040_00, nullable = true))
    CodeObject laoNianRQGZTCSJG;

    /**
     * 情感抑郁评分
     */
    @XPath(path = "/entry/observation/entryRelationship/observation/code[@code='DE05.10.044.00']/../value/@value",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE05_10_044_00, nullable = true))
    String qingGanYYPF;

    /**
     * 健康评价标志 true / false
     */
    @XPath(path = "/entry/observation/code[@code='DE05.10.031.00']/../value/@value",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE05_10_031_00, nullable = true))
    String jianKangPJYCBZ;

    /**
     * 健康评价异常详述
     */
    @XPath(model = "code",
            codePath = "/entry/observation/entryRelationship/observation/code[@code='DE05.10.032.00']",
            path = "/value/text()",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE05_10_032_00, nullable = true))
    String jianKangPJYCXS;
}
